package jea.machine.db;

import java.util.Vector;

public class VacuumProfile
{
	 private Vector<ProfilePoint> profilePoints = new Vector<ProfilePoint>();
	 private String profileDescription = null;
	 private String profileType = null;
	 private String profileDrawingRef = null;
	 private String profileDrawingAccessPath = null;
	 
	 
	 public VacuumProfile(String profileType, String profileDescription, String profileDrawinfRef, String profileDrawingAccessPath)
	 {
		 this.profileDescription = profileDescription;
		 this.profileType = profileType;
		 this.profileDrawingRef = profileDrawinfRef;
		 this.profileDrawingAccessPath = profileDrawingAccessPath;
	 }
	 
	 public void addPoint(int pointIndex, double x, double y)
	 {
		 profilePoints.add(new ProfilePoint(pointIndex, x, y)); 
	 }
	 public int getPoints()
	 {
		 return profilePoints.size();
	 }
	 public double getX(int pointIndex)
	 {
		 return profilePoints.elementAt(pointIndex).getX();
	 }
	 public double getY(int pointIndex)
	 {
		 return profilePoints.elementAt(pointIndex).getY();
	 }
	 public String getProfileType()
	 {
		 return profileType;
	 }
	 public String getProfileDescription()
	 {
		 return profileDescription;
	 }
	 public String getProfileDrawing()
	 {
		return profileDrawingRef; 
	 }
	 public String getProfileDrawingAccessPath()
	 {
	    return profileDrawingAccessPath;	 
	 }
	 
}

